<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <style>
        /* 1. 全局样式和背景 */
        body {
            font-family: Arial, sans-serif;
            background-color: #e6f7ff; /* 浅蓝色背景 */
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        /* 2. 注册容器样式 */
        .register-container {
            background-color: #ffffff;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* 更明显的阴影 */
            width: 400px;
            max-width: 90%;
            text-align: center;
        }

        /* 3. 标题样式 */
        h2 {
            margin-bottom: 30px;
            color: #1890ff; /* 蓝色标题 */
        }

        /* 4. 表单元素组 */
        .input-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }

        .input-group input[type="text"],
        .input-group input[type="password"],
        .input-group input[type="email"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #a0cfff; /* 浅蓝色边框 */
            border-radius: 4px;
            box-sizing: border-box;
        }

        /* 5. 注册按钮样式 */
        button {
            width: 100%;
            padding: 12px;
            background-color: #52c41a; /* 绿色主色调 */
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: background-color 0.3s ease;
            margin-top: 10px;
        }

        button:hover {
            background-color: #389e0d; /* 鼠标悬停时的深绿色 */
        }
    </style>
</head>
<body>

<div class="register-container">
    <h2>新用户注册</h2>

    <form action="http://localhost:8080/servlet/pig1" method="GET">

        <div class="input-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="username" placeholder="请设置您的用户名" required>
        </div>

        <div class="input-group">
            <label for="email">邮箱</label>
            <input type="email" id="email" name="email" placeholder="请输入常用邮箱" required>
        </div>

        <div class="input-group">
            <label for="password">密 码</label>
            <input type="password" id="password" name="password" placeholder="请设置密码" required>
        </div>

        <div class="input-group">
            <label for="confirm_password">确认密码</label>
            <input type="password" id="confirm_password" name="confirm_password" placeholder="请再次输入密码" required>
        </div>

        <button type="submit">立即注册</button>

    </form>
</div>

</body>
</html>